///////////////////////////////////////////////////////////////////////////// // NORITSU NetOrder SDK Ver 1.0.3 // // QssMsg.h // // Copyright (C) 2002 Noritsu Koki Co.,Ltd. All rights reserved. ///////////////////////////////////////////////////////////////////////////// #ifndef __QSSMSG_H__ #define __QSSMSG_H__ #pragma once #include "QssDef.h" #pragma pack(push, 2) #define MAX_BUFFSIZE 2048 #ifndef _MAC typedef unsigned __int64 UnsignedWide; #endif typedef struct _WSQSS_PRINTER_INFO { unsigned char Name[ 20 ]; unsigned long Version; unsigned char Reserve[ 40 ]; } WSQSS_PRINTER_INFO; typedef struct _WSQSS_CLIENT_INFO { unsigned char User[ 20 ]; unsigned char Host[ 20 ]; unsigned char Address[ 6 ]; unsigned char Reserve[ 50 ]; } WSQSS_CLIENT_INFO; typedef struct _WSQSS_FRAME_PARAM { unsigned short OrderNo; unsigned short FrameNum; unsigned short FrameNo; unsigned char FileName[ 18 ]; unsigned long FileSize; unsigned long ImageFormat; unsigned short PrintSize; unsigned short RepeatNum; unsigned short RepeatPos; unsigned char CvpString1[ 120 ]; unsigned char CvpString2[ 120 ]; unsigned short CvpFlg; unsigned char Reserve[ 40 ]; } WSQSS_FRAME_PARAM; typedef struct _WSQSS_ORDER_PARAM { unsigned short OrderNo; unsigned short FrameNum; unsigned short PaperWidth; unsigned short PaperLengthC; unsigned short PaperLengthP; unsigned short PaperLengthH; unsigned short Surface; unsigned short WithBorderC; unsigned short WithBorderP; unsigned short WithBorderH; unsigned short IndexPrintFlg; unsigned short PaperFittingFlg; unsigned short IndexPaperWidth; unsigned short IndexSurface; unsigned short CmsFlg; unsigned char Reserve[ 34 ]; } WSQSS_ORDER_PARAM; typedef struct _WSQSS_PAPER_INFO { unsigned short PaperWidth; unsigned short Resolut; unsigned short MagazineState; unsigned long PaperRemaind; unsigned short Surface; unsigned short PaperLengthMin; unsigned short PaperLengthMax; unsigned char Reserve[ 48 ]; } WSQSS_PAPER_INFO; typedef struct _WSQSS_ERROR_INFO { unsigned short MainNo; unsigned short SubNo; unsigned short Level; wchar_t Message[ 256 ]; unsigned char Reserve[ 26 ]; } WSQSS_ERROR_INFO; typedef struct _WSQSS_ORDER_STATE { unsigned short OrderNo; unsigned short OrderState; unsigned char Reserve[ 28 ]; } WSQSS_ORDER_STATE; typedef struct _WSQSS_PRINTER_STATE { unsigned short QssState; unsigned short AbleReceive; unsigned short AblePU; WSQSS_PAPER_INFO MagazineA; WSQSS_PAPER_INFO MagazineB; unsigned long SupportImageFormat; UnsignedWide TotalPrintNum; unsigned short TemperatureCD; unsigned short TemperatureBF; unsigned short TemperatureSTB; unsigned short RemaindQuantityCD; unsigned short RemaindQuantityBF; unsigned short RemaindQuantitySTB; UnsignedWide SpoolerSpace; unsigned char Reserve[ 26 ]; } WSQSS_PRINTER_STATE; typedef struct _WSQSS_PRINT_CHANNEL { short ChNo; unsigned short Meishou[ 11 ]; short Printtype; unsigned char InpMediaType; unsigned short MeishouCph[ 3 ][ 6 ]; short Haba[ 3 ]; short Mensitu[ 3 ]; short Feed[ 3 ]; short WbHaba[ 3 ]; short SizeRate[ 3 ]; short RokouichiHosei[ 3 ]; short CvpSw; short FPSw; short IDPSize[ 3 ]; short IndexHaba[ 3 ]; short IndexMensitu[ 3 ]; unsigned char OutMediaSw; unsigned short OutMediaFormat; unsigned char OutMediaInfoQuality; unsigned char OutMediaInfoQualityPer; unsigned char OutMediaInfoSize; unsigned char PaperFitSW; unsigned short EditModeNo; unsigned short Template; unsigned char PapScan120; unsigned char Reserve[ 27 ]; } WSQSS_PRINT_CHANNEL; typedef struct _WSQSS_PU_INFO { unsigned char NameC[ 20 ]; unsigned char NameP[ 20 ]; unsigned char NameH[ 20 ]; unsigned short QuantityC; unsigned short QuantityP; unsigned short QuantityH; unsigned short PriceC; unsigned short PriceP; unsigned short PriceH; unsigned long SumC; unsigned long SumP; unsigned long SumH; unsigned long ChargePrice; unsigned long IndexPrice; unsigned char Reserve[ 36 ]; } WSQSS_PU_INFO; typedef struct _WSQSS_SUM_INFO { unsigned long PChC[ 100 ]; unsigned long PChP[ 100 ]; unsigned long PChH[ 100 ]; unsigned long PaperPrint; unsigned long PaperIndex; unsigned long PaperSetup; unsigned long PaperLabel; unsigned long PaperOther; unsigned long PaperTotal; unsigned long WriteMedia; unsigned long WriteImage; unsigned short DisposalSpec; unsigned long TotalHojyu[ 9 ]; unsigned char Reserve[ 42 ]; } WSQSS_SUM_INFO; typedef struct _WSQSS_PROFILE_INFO { unsigned short DeviceKind; unsigned short PaperWidth; unsigned short Surface; unsigned char Reserve[ 26 ]; } WSQSS_PROFILE_INFO; typedef struct _WSQSS_RESULT { unsigned long ReturnValue; unsigned char Reserve[ 28 ]; } WSQSS_RESULT; struct WSQSS_FIND_COMMAND { char Reserve[40]; }; struct WSQSS_FIND_ANS { char Model[20]; unsigned char Addr[4]; unsigned short Resolut; unsigned char Reserve[14]; }; struct TCtrMsg { unsigned short vMid; unsigned short vPid; union { struct WSQSS_FIND_COMMAND FindCmd; struct WSQSS_FIND_ANS FindAns; }; }; struct TQssMsg { unsigned short vMid; unsigned long vVer; unsigned short vPid; unsigned long vSize; unsigned short vReserve[2]; }; // Commnad ID: 01H (Get QSS model name and interface version) struct TQssMsg_0100H : public TQssMsg // Send/Receive ID: 00H (Send) { }; struct TQssMsg_0110H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result WSQSS_PRINTER_INFO vQssInfo; // QSS information }; // Commnad ID: 02H (Send print data to QSS) struct TQssMsg_0200H : public TQssMsg // Send/Receive ID: 00H { WSQSS_CLIENT_INFO vClientInfo; // Client Information WSQSS_FRAME_PARAM vFrameParam; // Frame Print Parameter Information }; struct TQssMsg_0210H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result }; // CCommnad ID: 03H (Spool order) struct TQssMsg_0300H : public TQssMsg // Send/Receive ID: 00H (Send) { WSQSS_CLIENT_INFO vClientInfo; // Client Information WSQSS_ORDER_PARAM vOrderParam; // Order Print Parameter Information }; struct TQssMsg_0310H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result }; // Commnad ID: 04H (Cancel order) struct TQssMsg_0400H : public TQssMsg // Send/Receive ID: 00H (Send) { WSQSS_CLIENT_INFO vClientInfo; // Client infomation unsigned short vOrderNo; // Request number }; struct TQssMsg_0410H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result }; // Commnad ID: 05H (PU output) struct TQssMsg_0500H : public TQssMsg // Send/Receive ID: 00H (Send) { WSQSS_CLIENT_INFO vClientInfo; unsigned short vOrderNo; // Request number WSQSS_PU_INFO vPuInfo; }; struct TQssMsg_0510H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result }; // Commnad ID: 06H (Get paper information) struct TQssMsg_0600H : public TQssMsg // Send/Receive ID: 00H (Send) { unsigned short vFlg; // Get flag }; struct TQssMsg_0610H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result unsigned long vTotalCount; // Total number of information to get unsigned long vSequenceNo; // Sequence ID WSQSS_PAPER_INFO vPaperInfo; // Paper information }; // Commnad ID: 07H (Get error/attention message) struct TQssMsg_0700H : public TQssMsg // Send/Receive ID: 00H (Send) { unsigned short vFlg; // Get flag }; struct TQssMsg_0710H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result unsigned long vTotalCount; // Total number of information to get unsigned long vSequenceNo; // Sequence ID WSQSS_ERROR_INFO vErrorInfo; // Error information }; // Commnad ID: 08H (Get order status) struct TQssMsg_0800H : public TQssMsg // Send/Receive ID: 00H (Send) { WSQSS_CLIENT_INFO vClientInfo; // Client information unsigned short vFlg; // Get flag unsigned short vOrderNo; // Request number }; struct TQssMsg_0810H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result unsigned long vTotalCount; // Total number of information to get unsigned long vSequenceNo; // Sequence ID WSQSS_ORDER_STATE vOrderState; // Order status information }; // Commnad ID: 09H (Get QSS status) struct TQssMsg_0900H : public TQssMsg // Send/Receive ID: 00H (Send) { unsigned short vModeFlg; // Switch request flag unsigned short vReserve[16]; }; struct TQssMsg_0910H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result WSQSS_PRINTER_STATE vPrinterState; // QSS status }; // Commnad ID: 0AH (Get print channel information) struct TQssMsg_0A00H : public TQssMsg // Send/Receive ID: 00H (Send) { }; struct TQssMsg_0A10H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result unsigned long vTotalCount; // Total number of information to get unsigned long vSequenceNo; // Sequence ID WSQSS_PRINT_CHANNEL vPrintChannel; // Print channel information }; // Commnad ID: 0BH (Get total number of prints or total amount of replenisher solution) struct TQssMsg_0B00H : public TQssMsg // Send/Receive ID: 00H (Send) { }; struct TQssMsg_0B10H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result WSQSS_SUM_INFO vSumInfo; // Total information }; // Commnad ID: 0CH (Get profile information) struct TQssMsg_0C00H : public TQssMsg // Send/Receive ID: 00H (Send) { WSQSS_PROFILE_INFO vProfileInfo; // Profile information }; struct TQssMsg_0C10H : public TQssMsg // Send/Receive ID: 01H (Receive) { WSQSS_RESULT vResult; // Result unsigned long vProfileSize; // Data length }; #pragma pack(pop) #endif // __QSSMSG_H__